package com.itheima.tanhua.service;

import com.itheima.tanhua.api.db.TestSoulApi;
import com.itheima.tanhua.vo.mongo.TestSoulVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestSoulService {
    @DubboReference
    TestSoulApi testSoulApi;

    public List<TestSoulVo> getAllTestSoulVo() {
        return testSoulApi.getAll();
    }
//
    public Integer getTotalScore(List<String> optionId) {
        return testSoulApi.getTotalScore(optionId);
    }
}
